package com.ruoyi.exam_major.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam_major.mapper.TbExamMajorMapper;
import com.ruoyi.exam_major.domain.TbExamMajor;
import com.ruoyi.exam_major.service.ITbExamMajorService;

/**
 * 报考专业信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbExamMajorServiceImpl implements ITbExamMajorService 
{
    @Autowired
    private TbExamMajorMapper tbExamMajorMapper;

    /**
     * 查询报考专业信息
     * 
     * @param id 报考专业信息主键
     * @return 报考专业信息
     */
    @Override
    public TbExamMajor selectTbExamMajorById(Long id)
    {
        return tbExamMajorMapper.selectTbExamMajorById(id);
    }

    /**
     * 查询报考专业信息列表
     * 
     * @param tbExamMajor 报考专业信息
     * @return 报考专业信息
     */
    @Override
    public List<TbExamMajor> selectTbExamMajorList(TbExamMajor tbExamMajor)
    {
        return tbExamMajorMapper.selectTbExamMajorList(tbExamMajor);
    }

    /**
     * 新增报考专业信息
     * 
     * @param tbExamMajor 报考专业信息
     * @return 结果
     */
    @Override
    public int insertTbExamMajor(TbExamMajor tbExamMajor)
    {
        return tbExamMajorMapper.insertTbExamMajor(tbExamMajor);
    }

    /**
     * 修改报考专业信息
     * 
     * @param tbExamMajor 报考专业信息
     * @return 结果
     */
    @Override
    public int updateTbExamMajor(TbExamMajor tbExamMajor)
    {
        return tbExamMajorMapper.updateTbExamMajor(tbExamMajor);
    }

    /**
     * 批量删除报考专业信息
     * 
     * @param ids 需要删除的报考专业信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamMajorByIds(Long[] ids)
    {
        return tbExamMajorMapper.deleteTbExamMajorByIds(ids);
    }

    /**
     * 删除报考专业信息信息
     * 
     * @param id 报考专业信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamMajorById(Long id)
    {
        return tbExamMajorMapper.deleteTbExamMajorById(id);
    }
}
